package com.ruoyi.asms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.asms.domain.Installation;
import com.ruoyi.asms.mapper.InstallationMapper;
import com.ruoyi.asms.service.IInstallationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author yfkj
 * @date 2022-04-24
 */
@Service
public class InstallationServiceImpl extends ServiceImpl<InstallationMapper, Installation>  implements IInstallationService
{
    @Autowired
    private InstallationMapper installationMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param installationId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Installation selectInstallationByInstallationId(Long installationId)
    {
        return installationMapper.selectInstallationByInstallationId(installationId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param installation 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Installation> selectInstallationList(Installation installation)
    {
        return installationMapper.selectInstallationList(installation);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param installation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertInstallation(Installation installation)
    {
        return installationMapper.insertInstallation(installation);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param installation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateInstallation(Installation installation)
    {
        return installationMapper.updateInstallation(installation);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param installationIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteInstallationByInstallationIds(Long[] installationIds)
    {
        return installationMapper.deleteInstallationByInstallationIds(installationIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param installationId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteInstallationByInstallationId(Long installationId)
    {
        return installationMapper.deleteInstallationByInstallationId(installationId);
    }
}
